Optimal. Leaf size=149 \[ 2 b^2 c^2 d x-2 b c d \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))-2 c^2 d x (a+b \text {ArcSin}(c x))^2-\frac {d \left (1-c^2 x^2\right ) (a+b \text {ArcSin}(c x))^2}{x}-4 b c d (a+b \text {ArcSin}(c x)) \tanh ^{-1}\left (e^{i \text {ArcSin}(c x)}\right )+2 i b^2 c d \text {PolyLog}\left (2,-e^{i \text {ArcSin}(c x)}\right )-2 i b^2 c d \text {PolyLog}\left (2,e^{i \text {ArcSin}(c x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 149, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 9, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {4785, 4715,
4767, 8, 4783, 4803, 4268, 2317, 2438} \begin {gather*} -2 b c d \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))-\frac {d \left (1-c^2 x^2\right ) (a+b \text {ArcSin}(c x))^2}{x}-2 c^2 d x (a+b \text {ArcSin}(c x))^2-4 b c d \tanh ^{-1}\left (e^{i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))+2 i b^2 c d \text {Li}_2\left (-e^{i \text {ArcSin}(c x)}\right )-2 i b^2 c d \text {Li}_2\left (e^{i \text {ArcSin}(c x)}\right )+2 b^2 c^2 d x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2317
Rule 2438
Rule 4268
Rule 4715
Rule 4767
Rule 4783
Rule 4785
Rule 4803
Rubi steps
\begin {align*} \int \frac {\left (d-c^2 d x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x^2} \, dx &=-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}+(2 b c d) \int \frac {\sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{x} \, dx-\left (2 c^2 d\right ) \int \left (a+b \sin ^{-1}(c x)\right )^2 \, dx\\ &=2 b c d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-2 c^2 d x \left (a+b \sin ^{-1}(c x)\right )^2-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}+(2 b c d) \int \frac {a+b \sin ^{-1}(c x)}{x \sqrt {1-c^2 x^2}} \, dx-\left (2 b^2 c^2 d\right ) \int 1 \, dx+\left (4 b c^3 d\right ) \int \frac {x \left (a+b \sin ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx\\ &=-2 b^2 c^2 d x-2 b c d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-2 c^2 d x \left (a+b \sin ^{-1}(c x)\right )^2-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}+(2 b c d) \text {Subst}\left (\int (a+b x) \csc (x) \, dx,x,\sin ^{-1}(c x)\right )+\left (4 b^2 c^2 d\right ) \int 1 \, dx\\ &=2 b^2 c^2 d x-2 b c d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-2 c^2 d x \left (a+b \sin ^{-1}(c x)\right )^2-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}-4 b c d \left (a+b \sin ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )-\left (2 b^2 c d\right ) \text {Subst}\left (\int \log \left (1-e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )+\left (2 b^2 c d\right ) \text {Subst}\left (\int \log \left (1+e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )\\ &=2 b^2 c^2 d x-2 b c d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-2 c^2 d x \left (a+b \sin ^{-1}(c x)\right )^2-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}-4 b c d \left (a+b \sin ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )+\left (2 i b^2 c d\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )-\left (2 i b^2 c d\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )\\ &=2 b^2 c^2 d x-2 b c d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-2 c^2 d x \left (a+b \sin ^{-1}(c x)\right )^2-\frac {d \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x}-4 b c d \left (a+b \sin ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )+2 i b^2 c d \text {Li}_2\left (-e^{i \sin ^{-1}(c x)}\right )-2 i b^2 c d \text {Li}_2\left (e^{i \sin ^{-1}(c x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.31, size = 203, normalized size = 1.36 \begin {gather*} -\frac {d \left (a^2+a^2 c^2 x^2+2 a b c x \left (\sqrt {1-c^2 x^2}+c x \text {ArcSin}(c x)\right )+b^2 c x \left (2 \sqrt {1-c^2 x^2} \text {ArcSin}(c x)+c x \left (-2+\text {ArcSin}(c x)^2\right )\right )+2 a b \left (\text {ArcSin}(c x)+c x \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )\right )-i b^2 \left (i \text {ArcSin}(c x) \left (\text {ArcSin}(c x)+2 c x \left (-\log \left (1-e^{i \text {ArcSin}(c x)}\right )+\log \left (1+e^{i \text {ArcSin}(c x)}\right )\right )\right )+2 c x \text {PolyLog}\left (2,-e^{i \text {ArcSin}(c x)}\right )-2 c x \text {PolyLog}\left (2,e^{i \text {ArcSin}(c x)}\right )\right )\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.31, size = 250, normalized size = 1.68
method | result | size |
derivativedivides | \(c \left (-d \,a^{2} \left (c x +\frac {1}{c x}\right )-2 d \,b^{2} \arcsin \left (c x \right ) \sqrt {-c^{2} x^{2}+1}-d \,b^{2} \arcsin \left (c x \right )^{2} c x +2 d \,b^{2} c x -\frac {d \,b^{2} \arcsin \left (c x \right )^{2}}{c x}+2 d \,b^{2} \arcsin \left (c x \right ) \ln \left (1-i c x -\sqrt {-c^{2} x^{2}+1}\right )-2 d \,b^{2} \arcsin \left (c x \right ) \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )-2 i d \,b^{2} \polylog \left (2, i c x +\sqrt {-c^{2} x^{2}+1}\right )+2 i d \,b^{2} \polylog \left (2, -i c x -\sqrt {-c^{2} x^{2}+1}\right )-2 d a b \left (c x \arcsin \left (c x \right )+\frac {\arcsin \left (c x \right )}{c x}+\sqrt {-c^{2} x^{2}+1}+\arctanh \left (\frac {1}{\sqrt {-c^{2} x^{2}+1}}\right )\right )\right )\) | \(250\) |
default | \(c \left (-d \,a^{2} \left (c x +\frac {1}{c x}\right )-2 d \,b^{2} \arcsin \left (c x \right ) \sqrt {-c^{2} x^{2}+1}-d \,b^{2} \arcsin \left (c x \right )^{2} c x +2 d \,b^{2} c x -\frac {d \,b^{2} \arcsin \left (c x \right )^{2}}{c x}+2 d \,b^{2} \arcsin \left (c x \right ) \ln \left (1-i c x -\sqrt {-c^{2} x^{2}+1}\right )-2 d \,b^{2} \arcsin \left (c x \right ) \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )-2 i d \,b^{2} \polylog \left (2, i c x +\sqrt {-c^{2} x^{2}+1}\right )+2 i d \,b^{2} \polylog \left (2, -i c x -\sqrt {-c^{2} x^{2}+1}\right )-2 d a b \left (c x \arcsin \left (c x \right )+\frac {\arcsin \left (c x \right )}{c x}+\sqrt {-c^{2} x^{2}+1}+\arctanh \left (\frac {1}{\sqrt {-c^{2} x^{2}+1}}\right )\right )\right )\) | \(250\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - d \left (\int a^{2} c^{2}\, dx + \int \left (- \frac {a^{2}}{x^{2}}\right )\, dx + \int b^{2} c^{2} \operatorname {asin}^{2}{\left (c x \right )}\, dx + \int \left (- \frac {b^{2} \operatorname {asin}^{2}{\left (c x \right )}}{x^{2}}\right )\, dx + \int 2 a b c^{2} \operatorname {asin}{\left (c x \right )}\, dx + \int \left (- \frac {2 a b \operatorname {asin}{\left (c x \right )}}{x^{2}}\right )\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^2\,\left (d-c^2\,d\,x^2\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________